package com.maxd.service.helpTask;

import com.maxd.model.HelpBrowsingHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.Map;


public interface HelpBrowsingHistoryService {

    HelpBrowsingHistory save(HelpBrowsingHistory helpBrowsingHistory);

    Page<Map<String,Object>> selectHelpBrowsingHistoryList(Long userId, Pageable pageable);

    Long selectHelpBrowsingHistoryByUserId(Long userId,Long helpTaskId);

    int updateCreateTimeByUserId(Long helpBrowsingId , Date createTime);

}
